package com.andy.customerService.pojo.response;

import com.andy.customerService.entity.Org;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class OrgTreeResponse {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "部门代码")
    private String code;

    @ApiModelProperty(value = "父级代码")
    private String parentCode;

    @ApiModelProperty(value = "状态（0：禁用，1启用）")
    private String status;

    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    private List<Org> children;
}
